3.3.99 \(\int \frac {(b \cos (c+d x))^{3/2} (A+B \cos (c+d x)+C \cos ^2(c+d x))}{\sqrt {\cos (c+d x)}} \, dx\) [299]

Optimal. Leaf size=147 \[ \frac {b B x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b (3 A+2 C) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \sqrt {\cos (c+d x)}}+\frac {b B \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {b C \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d} \]

[Out]

1/3*b*C*cos(d*x+c)^(3/2)*sin(d*x+c)*(b*cos(d*x+c))^(1/2)/d+1/2*b*B*x*(b*cos(d*x+c))^(1/2)/cos(d*x+c)^(1/2)+1/3
*b*(3*A+2*C)*sin(d*x+c)*(b*cos(d*x+c))^(1/2)/d/cos(d*x+c)^(1/2)+1/2*b*B*sin(d*x+c)*cos(d*x+c)^(1/2)*(b*cos(d*x
+c))^(1/2)/d

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 147, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.070, Rules used = {17, 3102, 2813} \begin {gather*} \frac {b (3 A+2 C) \sin (c+d x) \sqrt {b \cos (c+d x)}}{3 d \sqrt {\cos (c+d x)}}+\frac {b B x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b B \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}{2 d}+\frac {b C \sin (c+d x) \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)}}{3 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/Sqrt[Cos[c + d*x]],x]

[Out]

(b*B*x*Sqrt[b*Cos[c + d*x]])/(2*Sqrt[Cos[c + d*x]]) + (b*(3*A + 2*C)*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(3*d*S
qrt[Cos[c + d*x]]) + (b*B*Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(2*d) + (b*C*Cos[c + d*x]^(3/2
)*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(3*d)

Rule 17

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[a^(m + 1/2)*b^(n - 1/2)*(Sqrt[b*v]/Sqrt[a*v])
, Int[u*v^(m + n), x], x] /; FreeQ[{a, b, m}, x] &&  !IntegerQ[m] && IGtQ[n + 1/2, 0] && IntegerQ[m + n]

Rule 2813

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(2*a*c +
 b*d)*(x/2), x] + (-Simp[(b*c + a*d)*(Cos[e + f*x]/f), x] - Simp[b*d*Cos[e + f*x]*(Sin[e + f*x]/(2*f)), x]) /;
 FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0]

Rule 3102

Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (
f_.)*(x_)]^2), x_Symbol] :> Simp[(-C)*Cos[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Dist[1/(
b*(m + 2)), Int[(a + b*Sin[e + f*x])^m*Simp[A*b*(m + 2) + b*C*(m + 1) + (b*B*(m + 2) - a*C)*Sin[e + f*x], x],
x], x] /; FreeQ[{a, b, e, f, A, B, C, m}, x] &&  !LtQ[m, -1]

Rubi steps

\begin {align*} \int \frac {(b \cos (c+d x))^{3/2} \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right )}{\sqrt {\cos (c+d x)}} \, dx &=\frac {\left (b \sqrt {b \cos (c+d x)}\right ) \int \cos (c+d x) \left (A+B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {b C \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d}+\frac {\left (b \sqrt {b \cos (c+d x)}\right ) \int \cos (c+d x) (3 A+2 C+3 B \cos (c+d x)) \, dx}{3 \sqrt {\cos (c+d x)}}\\ &=\frac {b B x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b (3 A+2 C) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d \sqrt {\cos (c+d x)}}+\frac {b B \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {b C \cos ^{\frac {3}{2}}(c+d x) \sqrt {b \cos (c+d x)} \sin (c+d x)}{3 d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.08, size = 76, normalized size = 0.52 \begin {gather*} \frac {b \sqrt {b \cos (c+d x)} (6 B c+6 B d x+3 (4 A+3 C) \sin (c+d x)+3 B \sin (2 (c+d x))+C \sin (3 (c+d x)))}{12 d \sqrt {\cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x] + C*Cos[c + d*x]^2))/Sqrt[Cos[c + d*x]],x]

[Out]

(b*Sqrt[b*Cos[c + d*x]]*(6*B*c + 6*B*d*x + 3*(4*A + 3*C)*Sin[c + d*x] + 3*B*Sin[2*(c + d*x)] + C*Sin[3*(c + d*
x)]))/(12*d*Sqrt[Cos[c + d*x]])

________________________________________________________________________________________

Maple [A]
time = 0.26, size = 83, normalized size = 0.56

method result size
default \(\frac {\left (b \cos \left (d x +c \right )\right )^{\frac {3}{2}} \left (2 C \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+3 B \cos \left (d x +c \right ) \sin \left (d x +c \right )+6 A \sin \left (d x +c \right )+3 B \left (d x +c \right )+4 C \sin \left (d x +c \right )\right )}{6 d \cos \left (d x +c \right )^{\frac {3}{2}}}\) \(83\)
risch \(\frac {b B x \sqrt {b \cos \left (d x +c \right )}}{2 \sqrt {\cos \left (d x +c \right )}}+\frac {b \sqrt {b \cos \left (d x +c \right )}\, \left (4 A +3 C \right ) \sin \left (d x +c \right )}{4 \sqrt {\cos \left (d x +c \right )}\, d}+\frac {b \sqrt {b \cos \left (d x +c \right )}\, C \sin \left (3 d x +3 c \right )}{12 \sqrt {\cos \left (d x +c \right )}\, d}+\frac {b \sqrt {b \cos \left (d x +c \right )}\, B \sin \left (2 d x +2 c \right )}{4 \sqrt {\cos \left (d x +c \right )}\, d}\) \(130\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2),x,method=_RETURNVERBOSE)

[Out]

1/6/d*(b*cos(d*x+c))^(3/2)*(2*C*sin(d*x+c)*cos(d*x+c)^2+3*B*cos(d*x+c)*sin(d*x+c)+6*A*sin(d*x+c)+3*B*(d*x+c)+4
*C*sin(d*x+c))/cos(d*x+c)^(3/2)

________________________________________________________________________________________

Maxima [A]
time = 0.66, size = 86, normalized size = 0.59 \begin {gather*} \frac {12 \, A b^{\frac {3}{2}} \sin \left (d x + c\right ) + 3 \, {\left (2 \, {\left (d x + c\right )} b + b \sin \left (2 \, d x + 2 \, c\right )\right )} B \sqrt {b} + {\left (b \sin \left (3 \, d x + 3 \, c\right ) + 9 \, b \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )} C \sqrt {b}}{12 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="maxima")

[Out]

1/12*(12*A*b^(3/2)*sin(d*x + c) + 3*(2*(d*x + c)*b + b*sin(2*d*x + 2*c))*B*sqrt(b) + (b*sin(3*d*x + 3*c) + 9*b
*sin(1/3*arctan2(sin(3*d*x + 3*c), cos(3*d*x + 3*c))))*C*sqrt(b))/d

________________________________________________________________________________________

Fricas [A]
time = 0.42, size = 249, normalized size = 1.69 \begin {gather*} \left [\frac {3 \, B \sqrt {-b} b \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \, {\left (2 \, C b \cos \left (d x + c\right )^{2} + 3 \, B b \cos \left (d x + c\right ) + 2 \, {\left (3 \, A + 2 \, C\right )} b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, d \cos \left (d x + c\right )}, \frac {3 \, B b^{\frac {3}{2}} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + {\left (2 \, C b \cos \left (d x + c\right )^{2} + 3 \, B b \cos \left (d x + c\right ) + 2 \, {\left (3 \, A + 2 \, C\right )} b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, d \cos \left (d x + c\right )}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="fricas")

[Out]

[1/12*(3*B*sqrt(-b)*b*cos(d*x + c)*log(2*b*cos(d*x + c)^2 - 2*sqrt(b*cos(d*x + c))*sqrt(-b)*sqrt(cos(d*x + c))
*sin(d*x + c) - b) + 2*(2*C*b*cos(d*x + c)^2 + 3*B*b*cos(d*x + c) + 2*(3*A + 2*C)*b)*sqrt(b*cos(d*x + c))*sqrt
(cos(d*x + c))*sin(d*x + c))/(d*cos(d*x + c)), 1/6*(3*B*b^(3/2)*arctan(sqrt(b*cos(d*x + c))*sin(d*x + c)/(sqrt
(b)*cos(d*x + c)^(3/2)))*cos(d*x + c) + (2*C*b*cos(d*x + c)^2 + 3*B*b*cos(d*x + c) + 2*(3*A + 2*C)*b)*sqrt(b*c
os(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c))/(d*cos(d*x + c))]

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))**(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)**2)/cos(d*x+c)**(1/2),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 6189 deep

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)+C*cos(d*x+c)^2)/cos(d*x+c)^(1/2),x, algorithm="giac")

[Out]

integrate((C*cos(d*x + c)^2 + B*cos(d*x + c) + A)*(b*cos(d*x + c))^(3/2)/sqrt(cos(d*x + c)), x)

________________________________________________________________________________________

Mupad [B]
time = 0.81, size = 71, normalized size = 0.48 \begin {gather*} \frac {b\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (12\,A\,\sin \left (c+d\,x\right )+9\,C\,\sin \left (c+d\,x\right )+3\,B\,\sin \left (2\,c+2\,d\,x\right )+C\,\sin \left (3\,c+3\,d\,x\right )+6\,B\,d\,x\right )}{12\,d\,\sqrt {\cos \left (c+d\,x\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((b*cos(c + d*x))^(3/2)*(A + B*cos(c + d*x) + C*cos(c + d*x)^2))/cos(c + d*x)^(1/2),x)

[Out]

(b*(b*cos(c + d*x))^(1/2)*(12*A*sin(c + d*x) + 9*C*sin(c + d*x) + 3*B*sin(2*c + 2*d*x) + C*sin(3*c + 3*d*x) +
6*B*d*x))/(12*d*cos(c + d*x)^(1/2))

________________________________________________________________________________________